package com.bawei.lib_common.base

import android.app.Application

import com.alibaba.android.arouter.launcher.ARouter
import com.bawei.lib_common.flow_eventbus.EventBusInitializer



/**
 *作者：lxy
 *功能:
 *时间：2025/5/22
 */
open class BaseApplication:Application() {

    companion object{
        lateinit var instance:BaseApplication
    }
    override fun onCreate() {
        super.onCreate()
        instance = this
        initARouter()

    }



    private fun initARouter() {
        ARouter.openLog()
        ARouter.openDebug()
        ARouter.init(this)
        EventBusInitializer.init(this)
    }
}


